package com.osdp.gateway.entity;

import java.io.Serializable;

public class JWTInfo implements Serializable {
    private String userId;
    private String userName;
    //是否超级管理员 如果是超级管理员，则不过滤租户信息，全部租户的信息可看。
    private boolean superAdmin = false;
    //当前登陆所属租户，该字段仅仅是管理平台才有用，因为管理平台需要根据当前租户，加载出当前租户下的信息。
    private String nowTenant;

    public JWTInfo(){}

    public JWTInfo(String userId, String userName, boolean superAdmin, String nowTenant) {
        this.userId = userId;
        this.userName = userName;
        this.superAdmin = superAdmin;
        this.nowTenant = nowTenant;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public boolean isSuperAdmin() {
        return superAdmin;
    }

    public void setSuperAdmin(boolean superAdmin) {
        this.superAdmin = superAdmin;
    }

    public String getNowTenant() {
        return nowTenant;
    }

    public void setNowTenant(String nowTenant) {
        this.nowTenant = nowTenant;
    }
}
